package computer.close_computer_2;

//计算机类
public class Computer {

    private void saveCurrentTask() {
        //do something
    }

    private void closeService() {
        //do something
    }

    private void closeScreen() {
        //do something
    }

    private void closePower() {
        //do something
    }

    public void close() {
        saveCurrentTask();
        closeService();
        closeScreen();
        closePower();
    }
}